package com.neuedu.homework;

public class SalesEmployee extends ColaEmployee {
    //成员变量

    private double monthSaleTotal;
    private double saleRate;

    //行为方法

    @Override
    public double getSalary(int month) {
        //计算销售人员工资
        double mySalary=monthSaleTotal+saleRate;
        //计算有没有生日金
        mySalary+=super.getSalary(month);
        return mySalary;
    }


    public SalesEmployee(String empName, int empBirthdayMonth, double monthSaleTotal, double saleRate) {
        super(empName, empBirthdayMonth);
        this.monthSaleTotal = monthSaleTotal;
        this.saleRate = saleRate;
    }

    public SalesEmployee() {
    }

    public double getMonthSaleTotal() {
        return monthSaleTotal;
    }

    public void setMonthSaleTotal(double monthSaleTotal) {
        this.monthSaleTotal = monthSaleTotal;
    }

    public double getSaleRate() {
        return saleRate;
    }

    public void setSaleRate(double saleRate) {
        this.saleRate = saleRate;
    }


}
